package com.sniff.atp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.util.Date;

@TableName("sniff_purchase_order_item")
public class PurchaseOrderItem {
    @TableId(
            type = IdType.INPUT
    )
    private Long purchaseItemId;
    private String purchaseNo;
    private Long purchaseId;
    private String productCode;
    private String productSku;
    private String productName;
    private String productImg;
    private String productLink;
    private String productProp;
    private Integer sellQuantity;
    private BigDecimal sellUnitPrice;
    private BigDecimal productPrice;
    private BigDecimal purchaseUnitPrice;
    private Integer purchaseNum;
    private String itemCategory;
    private Integer stockInStatus;
    private Integer stockInNum;
    private Integer signNum;
    private String remark;
    private BigDecimal stallPrice;
    private Date createTime;
    private Date updateTime;
    private String recommendProductSku;
    private String recommendProductLink;
    private String productStallNumber;

    public void setPurchaseItemId(Long purchaseItemId) {
        this.purchaseItemId = purchaseItemId;
    }

    public PurchaseOrderItem() {
    }

    public Long getPurchaseItemId() {
        return this.purchaseItemId;
    }

    public String getPurchaseNo() {
        return this.purchaseNo;
    }

    public Long getPurchaseId() {
        return this.purchaseId;
    }

    public String getProductCode() {
        return this.productCode;
    }

    public String getProductSku() {
        return this.productSku;
    }

    public String getProductName() {
        return this.productName;
    }

    public String getProductImg() {
        return this.productImg;
    }

    public String getProductLink() {
        return this.productLink;
    }

    public String getProductProp() {
        return this.productProp;
    }

    public Integer getSellQuantity() {
        return this.sellQuantity;
    }

    public BigDecimal getSellUnitPrice() {
        return this.sellUnitPrice;
    }

    public BigDecimal getProductPrice() {
        return this.productPrice;
    }

    public BigDecimal getPurchaseUnitPrice() {
        return this.purchaseUnitPrice;
    }

    public Integer getPurchaseNum() {
        return this.purchaseNum;
    }

    public String getItemCategory() {
        return this.itemCategory;
    }

    public Integer getStockInStatus() {
        return this.stockInStatus;
    }

    public Integer getStockInNum() {
        return this.stockInNum;
    }

    public Integer getSignNum() {
        return this.signNum;
    }

    public String getRemark() {
        return this.remark;
    }

    public BigDecimal getStallPrice() {
        return this.stallPrice;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public Date getUpdateTime() {
        return this.updateTime;
    }

    public String getRecommendProductSku() {
        return this.recommendProductSku;
    }

    public String getRecommendProductLink() {
        return this.recommendProductLink;
    }

    public String getProductStallNumber() {
        return this.productStallNumber;
    }

    public void setPurchaseNo(String purchaseNo) {
        this.purchaseNo = purchaseNo;
    }

    public void setPurchaseId(Long purchaseId) {
        this.purchaseId = purchaseId;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public void setProductSku(String productSku) {
        this.productSku = productSku;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public void setProductImg(String productImg) {
        this.productImg = productImg;
    }

    public void setProductLink(String productLink) {
        this.productLink = productLink;
    }

    public void setProductProp(String productProp) {
        this.productProp = productProp;
    }

    public void setSellQuantity(Integer sellQuantity) {
        this.sellQuantity = sellQuantity;
    }

    public void setSellUnitPrice(BigDecimal sellUnitPrice) {
        this.sellUnitPrice = sellUnitPrice;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    public void setPurchaseUnitPrice(BigDecimal purchaseUnitPrice) {
        this.purchaseUnitPrice = purchaseUnitPrice;
    }

    public void setPurchaseNum(Integer purchaseNum) {
        this.purchaseNum = purchaseNum;
    }

    public void setItemCategory(String itemCategory) {
        this.itemCategory = itemCategory;
    }

    public void setStockInStatus(Integer stockInStatus) {
        this.stockInStatus = stockInStatus;
    }

    public void setStockInNum(Integer stockInNum) {
        this.stockInNum = stockInNum;
    }

    public void setSignNum(Integer signNum) {
        this.signNum = signNum;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setStallPrice(BigDecimal stallPrice) {
        this.stallPrice = stallPrice;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public void setRecommendProductSku(String recommendProductSku) {
        this.recommendProductSku = recommendProductSku;
    }

    public void setRecommendProductLink(String recommendProductLink) {
        this.recommendProductLink = recommendProductLink;
    }

    public void setProductStallNumber(String productStallNumber) {
        this.productStallNumber = productStallNumber;
    }


    public int hashCode() {
        int result = 1;
        Object $purchaseItemId = this.getPurchaseItemId();
        result = result * 59 + ($purchaseItemId == null ? 43 : $purchaseItemId.hashCode());
        Object $purchaseNo = this.getPurchaseNo();
        result = result * 59 + ($purchaseNo == null ? 43 : $purchaseNo.hashCode());
        Object $purchaseId = this.getPurchaseId();
        result = result * 59 + ($purchaseId == null ? 43 : $purchaseId.hashCode());
        Object $productCode = this.getProductCode();
        result = result * 59 + ($productCode == null ? 43 : $productCode.hashCode());
        Object $productSku = this.getProductSku();
        result = result * 59 + ($productSku == null ? 43 : $productSku.hashCode());
        Object $productName = this.getProductName();
        result = result * 59 + ($productName == null ? 43 : $productName.hashCode());
        Object $productImg = this.getProductImg();
        result = result * 59 + ($productImg == null ? 43 : $productImg.hashCode());
        Object $productLink = this.getProductLink();
        result = result * 59 + ($productLink == null ? 43 : $productLink.hashCode());
        Object $productProp = this.getProductProp();
        result = result * 59 + ($productProp == null ? 43 : $productProp.hashCode());
        Object $sellQuantity = this.getSellQuantity();
        result = result * 59 + ($sellQuantity == null ? 43 : $sellQuantity.hashCode());
        Object $sellUnitPrice = this.getSellUnitPrice();
        result = result * 59 + ($sellUnitPrice == null ? 43 : $sellUnitPrice.hashCode());
        Object $productPrice = this.getProductPrice();
        result = result * 59 + ($productPrice == null ? 43 : $productPrice.hashCode());
        Object $purchaseUnitPrice = this.getPurchaseUnitPrice();
        result = result * 59 + ($purchaseUnitPrice == null ? 43 : $purchaseUnitPrice.hashCode());
        Object $purchaseNum = this.getPurchaseNum();
        result = result * 59 + ($purchaseNum == null ? 43 : $purchaseNum.hashCode());
        Object $itemCategory = this.getItemCategory();
        result = result * 59 + ($itemCategory == null ? 43 : $itemCategory.hashCode());
        Object $stockInStatus = this.getStockInStatus();
        result = result * 59 + ($stockInStatus == null ? 43 : $stockInStatus.hashCode());
        Object $stockInNum = this.getStockInNum();
        result = result * 59 + ($stockInNum == null ? 43 : $stockInNum.hashCode());
        Object $signNum = this.getSignNum();
        result = result * 59 + ($signNum == null ? 43 : $signNum.hashCode());
        Object $remark = this.getRemark();
        result = result * 59 + ($remark == null ? 43 : $remark.hashCode());
        Object $stallPrice = this.getStallPrice();
        result = result * 59 + ($stallPrice == null ? 43 : $stallPrice.hashCode());
        Object $createTime = this.getCreateTime();
        result = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
        Object $updateTime = this.getUpdateTime();
        result = result * 59 + ($updateTime == null ? 43 : $updateTime.hashCode());
        Object $recommendProductSku = this.getRecommendProductSku();
        result = result * 59 + ($recommendProductSku == null ? 43 : $recommendProductSku.hashCode());
        Object $recommendProductLink = this.getRecommendProductLink();
        result = result * 59 + ($recommendProductLink == null ? 43 : $recommendProductLink.hashCode());
        Object $productStallNumber = this.getProductStallNumber();
        result = result * 59 + ($productStallNumber == null ? 43 : $productStallNumber.hashCode());
        return result;
    }

    public String toString() {
        return "PurchaseOrderItem(purchaseItemId=" + this.getPurchaseItemId() + ", purchaseNo=" + this.getPurchaseNo() + ", purchaseId=" + this.getPurchaseId() + ", productCode=" + this.getProductCode() + ", productSku=" + this.getProductSku() + ", productName=" + this.getProductName() + ", productImg=" + this.getProductImg() + ", productLink=" + this.getProductLink() + ", productProp=" + this.getProductProp() + ", sellQuantity=" + this.getSellQuantity() + ", sellUnitPrice=" + this.getSellUnitPrice() + ", productPrice=" + this.getProductPrice() + ", purchaseUnitPrice=" + this.getPurchaseUnitPrice() + ", purchaseNum=" + this.getPurchaseNum() + ", itemCategory=" + this.getItemCategory() + ", stockInStatus=" + this.getStockInStatus() + ", stockInNum=" + this.getStockInNum() + ", signNum=" + this.getSignNum() + ", remark=" + this.getRemark() + ", stallPrice=" + this.getStallPrice() + ", createTime=" + this.getCreateTime() + ", updateTime=" + this.getUpdateTime() + ", recommendProductSku=" + this.getRecommendProductSku() + ", recommendProductLink=" + this.getRecommendProductLink() + ", productStallNumber=" + this.getProductStallNumber() + ")";
    }
}
